# !/usr/bin python3
# encoding: utf-8 -*-
# @file     : login_page.py
# @author   : 沙陌 Matongxue_2
# @Time     : 2023/11/12 15:49
# @Copyright: 北京码同学


from pages.base_page import SellerBasePage
from pages.seller.home_page import SellerHomePage


class SellerLoginPage(SellerBasePage):


    def send_keys_username(self,username):
        ele_info = self.page_eles['用户名输入框']
        self.operate.send_keys(ele_info,username)
        return self
    def send_keys_password(self,password):
        ele_info = self.page_eles['密码输入框']
        self.operate.send_keys(ele_info,password)
        return self
    def send_keys_validcode(self,validcode):
        ele_info = self.page_eles['验证码输入框']
        self.operate.send_keys(ele_info,validcode)
        return self
    def click_login_btn(self):
        ele_info = self.page_eles['登录按钮']
        self.operate.click(ele_info)
        return SellerHomePage()